Ext.define('AmpleHarvest.views.contentSection.content',
{
    extend          : 'Ext.panel.Panel',
    alias           : 'widget.ampleharvest-views-contentSection-content',
    requires        :
    [
            
    ],
    // TODO: add classification handling using the following event
//  bubbleEvents    :
//  [
//      'doclassificationchange'
//  ],
    anchor          : '100% 100%',
    layout          : 'fit',
    m_str_URL		: '',
	html			: 'loading...',
    bubbleEvents	: [
                	   'reportContentClass'
                	   ],
    
    initComponent   : function()
    {
    	
    	if (!this.m_str_URL)
		{
//    		console.log('TODO: check obj_config.C_STR_SYSTEM_TYPE :: {'+obj_config.C_STR_SYSTEM_TYPE+'}');
			this.m_str_URL = "/mainpages/"+obj_config.C_STR_APPLICATION.toLowerCase()+"/mainpage.html";
		}
		
		this.callParent();

		this.on('render', function()
				{
					this.getEl().load(
							{
								url		: this.m_str_URL,
								scripts	: true
							});
					this.fireEvent('reportContentClass', this.classification);
				});
    }
});


